package com.dashang.feecenter.client;

import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * com.dashang.feecenter.client dashang-center
 *
 * @author duanxd
 * @version 1.0
 * @since 2021/11/17 09:37
 */
@FeignClient(value = "rebate-center",url = "http://localhost:9008")
public interface BaseCenterClient {

    @RequestMapping(value = "/data", method = RequestMethod.GET)
    String data(@RequestParam("tableName") String tableName,@RequestParam("object") String object);

    @RequestMapping(value = "/data2", method = RequestMethod.GET)
    String data2(@RequestParam("tableName") String tableName, @RequestParam("object") String object);
}
